﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PurchaseOrderHeaderListForArrivalManage.aspx.cs" Inherits="weba.Sales.PurchaseOrderHeaderListForArrivalManage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <script type="text/javascript" >
         function OpenModalDialog(url) {
             var newWin = null;
             newWin = window.showModalDialog(url, window, 'dialogHeight:600px;dialogWidth:800px');
             if (newWin == null) {
                 return;
             }
             newWin.open();
         }
   </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="30" background="../Images/tab_05.gif">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12" height="30">
                                <img src="../Images/tab_03.gif" width="12" height="30" />
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="46%" valign="middle">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td>
                                                        <div align="center">
                                                            <img src="../images/tb.gif" width="16" height="16" /></div>
                                                    </td>
                                                    <td width="95%">
                                                        <span class="titleBold12px">订货单入库管理</span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%" align="right">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" height="30">
                                <img src="../Images/tab_07.gif" width="16" height="30" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="8" background="../images/tab_12.gif">
                                &nbsp;
                            </td>
                            <td align="center">
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                    <ProgressTemplate>
                                        <img src="../Images/ajax-loader.gif" alt="" />数据载入中，请稍候...
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                                <br />
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td align="center">
                                                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left">
                                                                说明：不能修改已经到货完成付款流程的订货单。如要删除订货单，必须先删除订货单下的订货明细。
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="lblStrWhere" runat="server" Visible="False"></asp:Label>
                                                                <asp:Label ID="lblRootDepartmentID" runat="server" Visible="False"></asp:Label>
                                                                <br />
                                                                订货单编号：<asp:TextBox ID="txtOrderNumber" runat="server"></asp:TextBox>
                                                                <br />
                                                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" />
                                                                分页页数：<asp:TextBox ID="txtPageSize" runat="server" Width="50px"></asp:TextBox>
                                                               
                                                                <asp:Button ID="btnSetPageSize" runat="server" Text="确定" OnClick="btnSetPageSize_Click" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td width="80%">
                                                              
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" Width="98%"
                                                        DataKeyNames="PurchaseOrderID,ManufacturerID,SubTotal,StatusPayment,StatusArrival"
                                                        OnRowDataBound="myGridView_RowDataBound">
                                                        <Columns>
                                                            <asp:BoundField DataField="PurchaseOrderID" HeaderText="ID"></asp:BoundField>
                                                            <asp:BoundField DataField="OrderNumber" HeaderText="订货单编号" />
                                                            <asp:TemplateField HeaderText="厂家" Visible="False">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblManufacturerName" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="DateOrder" HeaderText="订货日期" DataFormatString="{0:yyyy-MM-dd}"
                                                                HtmlEncode="False" />
                                                            <asp:TemplateField HeaderText="金额" Visible="False">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblSubtotal" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="付款状态" Visible="False">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblStatusPayment" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="到货状态">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblStatusArrival" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="到货入库">
                                                                <ItemTemplate>
                                                                    <a href="javascript:void(0)" onclick="OpenModalDialog('PurchaseOrderDetailArrivalManage.aspx?PurchaseOrderID=<%# Eval("PurchaseOrderID") %>');">
                                                                        到货入库</a>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="60px" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td width="8" background="../images/tab_15.gif">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="35" background="../images/tab_19.gif">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12" height="35">
                                <img src="../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td align="center">
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
